package architect.springcloud.feign.service;

import architect.springcloud.feign.security.BasicAuthConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 消息服务
 *
 * @author guanxin
 * @date 2018/4/16 15:24
 */

@FeignClient(value = "service-provider", configuration = BasicAuthConfiguration.class)
public interface MessageService {

    /**
     * 发送消息
     * @param message
     * @return
     */
    @GetMapping("/sendMessage")
    String sendMessage(@RequestParam(value = "message") String message);
}
